'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.post('/key/set', controller.key.set);
  router.get('/key/get', controller.key.get);
  router.get('/key/test/mail', controller.key.testSendMail);
  router.get('/good/list', controller.good.list);
  router.get('/good/inStock', controller.good.inStock);
  router.get('/good/testAddTask', controller.good.testAddTask);
  router.post('/reg', controller.user.reg);
  router.post('/login', controller.user.login);
  router.get('/get/data', controller.good.getData);
};
